package com.wangjw.aop;

import org.springframework.stereotype.Component;

/**
 * Created by wangjw on 18/6/19.
 */
@Component
public class GreetingImpl implements Greeting {

    @Tag
    @Override
    public void say(String name) {
        System.out.println("Hello! " + name);
    }

    public void goodMorning(String name) {
        System.out.println("Good Morning! " + name);
    }

    public void goodNight(String name) {
        System.out.println("Good Night! " + name);
    }
}
